package com.jiangjun.fetch;

import com.mongodb.BasicDBObject;
import com.mongodb.DBObject;

public class Weibo {

	private String id;
	private String name;
	private String isEnable;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getIsEnable() {
		return isEnable;
	}

	public void setIsEnable(String isEnable) {
		this.isEnable = isEnable;
	}

	public DBObject toDbObject() {
		DBObject object = new BasicDBObject();
		if (this.id != null) {
			object.put("id", this.id);
		}
		if (this.name != null) {
			object.put("name", this.name);
		}
		if (this.isEnable != null) {
			object.put("isEnable", this.isEnable);
		}
		return object;
	}
}
